package com.ai.notices.service.interfaces;

import com.ai.notices.common.util.PagedResult;
import com.ai.notices.dao.mysql.model.AuthStaff;
import com.ai.notices.dao.mysql.model.GdsInfo;
import com.ai.notices.dao.mysql.model.GdsInfoImp;
import com.ai.notices.service.resp.GdsInfoResp;
import com.ai.notices.web.controller.vo.GdsInfoVO;

import java.util.List;
import java.util.Map;

/**
 * Created by huangzh on 17/6/17.
 */
public interface IGdsInfoSV {
    public PagedResult<GdsInfo> queryGdsInfoByPage(GdsInfoVO gdsInfo, Integer pageNo, Integer pageSize)throws Exception;
    /*
    * 作者:huangzh5
    * 功能描述:根据ID更新商品信息
    * */
    public int updateGdsInfoById(GdsInfoVO gdsInfoVO)throws Exception;

    public void saveGdsInfo(String batchId, AuthStaff authStaff) throws Exception;

    public void saveGdsInfoImp(List<Map<String, String>> gdsInfoLst, String batchId, AuthStaff authStaff) throws Exception;

    public PagedResult<GdsInfoImp> queryGdsInfoImpByPage(GdsInfoImp imp, Integer pageNo, Integer pageSize) throws Exception;

    public List<GdsInfo> queryGdsInfos(GdsInfo gdsInfo)throws Exception;
    /**
     * 通过主键查询 microzhu
     * @param pk
     * @return
     * @throws Exception
     */
    public GdsInfoResp queryGdsInfosByPk(Long pk) throws Exception;
    /**
     * 通过主键查询 microzhu
     * @param pk
     * @return
     * @throws Exception
     */
    public GdsInfoResp queryGdsInfosByGdsId(Long pk) throws Exception;
    /**
     * 更新商品信息
     * @param vo
     * @throws Exception
     */
	public void updateGdsInfo(GdsInfoVO vo)throws Exception;
	/**
	 * 删除商品图片
	 * @param vo
	 * @throws Exception
	 */
	public void deleGdsPic(GdsInfoVO vo)throws Exception;
    /**
     * 更新商品信息
     * @param vo
     * @throws Exception
     */
    public void updateGdsInfo(List<String> idLst)throws Exception;
}
